package com.erp.mapper;

import com.erp.entity.RolePerms;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author pyj
 * @since 2020-11-07
 */
@Mapper
public interface RolePermsMapper{

    RolePerms findRolePermsByName(String name);

    List<RolePerms> getAll();

    int add(RolePerms rolePerms);

    int delete(Integer id);

    int update(RolePerms rolePerms);
    
    int deleteByRid(Integer rid);
    
    int deleteByPid(Integer pid);
}
